package com.hitqz.robot.api.business.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author wengyx
 * @date 2024/8/7
 * 检测结果
 */
@Data
@Schema(description = "巡检结果总览")
public class PatrolResultSummaryVo {
    @Schema(description = "工单id")
    private Integer ticketsId;
    @Schema(description = "工单名称")
    private String ticketsName;
    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @Schema(description = "检测项总数")
    private Integer totalItemNum;
    @Schema(description = "待检测项数")
    private Integer waitItemNum;
    @Schema(description = "检测项正常数")
    private Integer normalItemNum;
    @Schema(description = "检测项异常数")
    private Integer abnormalItemNum;
    @Schema(description = "检测项视觉识别失败数-图表统计的时候为了好看也放到正常里")
    private Integer visionFailedItemNum;

    @Schema(description = "审批数")
    private Integer auditNum;

    @Schema(description = "上传状态 0-未上传 1-上传完成")
    private Integer uploadItemNum;

}
